public class Bianli {

//    巧用for-each遍历数组
    public static void main(String[] args) {
        int [] array ={1,2,3,4,5,6};
        for (int x : array){
            System.out.println(x);
        }
    }
}
